<?php
    $gh = $_SERVER['HTTP_ACCEPT']; // 获取请求头的各种信息
    $fn = $_FILES['file'];
    if($fn){
        file_put_contents('uploads/' . $fn['name'], file_get_contents($fn['tmp_name']));
    }
    echo var_dump($fn);
?>